package com.med.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;


@Data
@NoArgsConstructor
@AllArgsConstructor
public class DepartmentDO {

  private Integer departmentId;
  private String departmentName;
  private String departmentDescription;
  private Integer departmentParentId;
  private Integer departmentStatus;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  private Timestamp departmentCreateTime;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  private Timestamp departmentUpdateTime;
  private Integer departmentDelete;

  private List<DepartmentDO> children = new ArrayList<>();

}
